import 'package:flutter/material.dart';
import 'package:yysk_app/utils/colors.dart';
import 'package:yysk_app/utils/helper.dart';

class ItemCardWidget extends StatelessWidget {
  final EdgeInsets? padding;
  final EdgeInsets? margin;
  final BorderRadius? borderRadius;
  final Widget child;
  final Color? backgroundColor;
  const ItemCardWidget({
    super.key,
    this.padding,
    this.margin,
    this.borderRadius,
    required this.child,
    this.backgroundColor = AppColors.backgroundColor,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      // margin: margin ?? EdgeInsets.only(top: 18.px),
      decoration: BoxDecoration(color: backgroundColor),
      child: child,
    );
  }
}
